package com.wtx.chapter03.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @description: 对于客户端, 在MyClient的main输入, 来自服务端的消息在这里打印一下就可以了
 * @author: wtx
 * @createDate: 2020/5/29
 */
public class MyChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println(s);
    }
}
